package com.fsc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fsc.entity.domain.StuHomeworkInfo;
import com.fsc.entity.vo.HomeworkInfoVO;
import com.fsc.entity.vo.StudentCompletionVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;


public interface StuHomeworkInfoService extends IService<StuHomeworkInfo> {

	List <StudentCompletionVO>getStuHomeworkInfosByHomeworkId(Integer homeworkId, Integer teacherId);


	StudentCompletionVO getHomeworkDetailsByStudentId(Integer studentId, Integer homeworkId);

	boolean updateHomeworkScore(Integer id, BigDecimal score);


	void addHomework(List<Integer> student, Integer homeworkId);

	List<HomeworkInfoVO> getHomeworkByStudentId(Integer loginId);



	void submitHomework(Integer homeworkId, String text, MultipartFile image, Integer studentId) throws IOException;

	void submitHomeworkOnlyText(Integer homeworkId, String text, Integer studentId);

	void deleteById(Integer homeworkId);
}
